package com.yy.young.travel.service;

import com.yy.young.dal.util.Page;
import com.yy.young.travel.model.NatureReserveCheck;
import com.yy.young.travel.model.Reserve;
import java.util.List;

/**
* 自然保护地详情表实体类服务接口
* Created by rookie on 2018-04-03.
*/
public interface IReserveService {
	//所属部门统计
	List deptStatis() throws Exception;
	//面积统计分析
	List naStatis() throws Exception;
	/**
	 * 类型统计分析
	 */
	List ncStatis() throws Exception;

    /**
    * 查询
    * @param obj
    * @return
    * @throws Exception
    */
    List<Reserve> getList(Reserve obj) throws Exception;

    /**
    * 分页查询
    * @param obj
    * @param page
    * @return
    * @throws Exception
    */
    List<Reserve> getPage(Reserve obj, Page page) throws Exception;

    /**
    * 查询单条
    * @param id
    * @return
    * @throws Exception
    */
    Reserve get(String id) throws Exception;

    /**
    * 修改
    * @param obj
    * @return
    * @throws Exception
    */
    int update(Reserve obj) throws Exception;

    /**
    * 删除
    * @param id
    * @return
    * @throws Exception
    */
    int delete(String id) throws Exception;

    /**
    * 批量删除
    * @param idArr
    * @return
    * @throws Exception
    */
    int delete(String[] idArr) throws Exception;

    /**
    * 插入
    * @param obj
    * @return
    * @throws Exception
    */
    int insert(Reserve obj) throws Exception;

    /**
    * 批量插入
    * @param list
    * @return
    * @throws Exception
    */
    int batchInsert(List<Reserve> list) throws Exception;
	
    //同意新增保护地申请
    void agreeApply(NatureReserveCheck obj)throws Exception;

    //拒绝新增保护地申请
    void disagreeApply(NatureReserveCheck obj)throws Exception;


}